package com.jyxd.web.data.hl7;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;


@ApiModel("hl7生命体征数据对应code与值")
@Entity
@Table(name = "table_hl7_homologous_life")
@Data
public class Hl7HomologousLife {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    @ApiModelProperty(name = "对应code")
    @Column(name = "code")
    private String code;

    @ApiModelProperty(name = "对应数据")
    @Column(name = "value")
    private String value;

    @ApiModelProperty(name = "单位对应code")
    @Column(name = "units_code")
    private String unitsCode;

    @ApiModelProperty(name = "单位对应的值")
    @Column(name = "units_value")
    private String unitsValue;

}
